<ui:composition 
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:p="http://primefaces.org/ui"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    template="template.xhtml">
    <ui:define name="title">
        Problem sa prijavljivanjem
    </ui:define>
    <ui:define name="center">
        <table align="center">
            <tr>
                <td>
            <p:panel header="Forma za resetovanje sifre:" id="panelRes">
                <h:form>
                    <h:outputText  value="Popunite formu kako biste resetovali svoju sifru."/>
                    <p:messages showDetail="true" showSummary="false"/>
                    <h:panelGrid id="panelgridRs" columns="2" cellpadding="3">
                        <h:outputLabel for="usernameRe" value="*Korisnicko ime:"/>
                        <p:inputText id="usernameRe" required="true" value="#{forgotManagedBean.username}"><p:focus/></p:inputText>
                        <h:outputLabel for="emailRe" value="*Email:"/>
                        <p:inputText id="emailRe" required="true" value="#{forgotManagedBean.email}"/>
                        <p:ajaxStatus>  
                            <f:facet name="start">  
                                <h:graphicImage style="width: 30px;height: 30px;" value="/images/spinner.gif" />  
                            </f:facet>  
                            <f:facet name="complete">  
                                <h:outputText value="" />  
                            </f:facet>  
                        </p:ajaxStatus>  
                        <p:commandButton value="Posalji" action="#{forgotManagedBean.resetPass()}" update="panelRes"/>
                    </h:panelGrid>
                </h:form>
                <h:form>
                    <h:panelGrid columns="2" cellpadding="3">
                        <p:commandLink value="Login" action="login.xhtml?faces-redirect=true" ajax="false"/>
                    </h:panelGrid>
                </h:form>
            </p:panel>
            </td>
            </tr>
        </table>
    </ui:define>
</ui:composition>